Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use eth_hw_addr_set instead of dev_addr_set #1089

Merged
merged 1 commit into from
Jul 3, 2023

Conversation

CGarces
Copy link

@CGarces CGarces commented Jul 2, 2023

Instead of define a dev_addr_set alias, eth_hw_addr_set should be declared for kernels < 5.15

eth_hw_addr_set was introduced on v5.15-rc1
torvalds/linux@48eab83
For old kernels memcpy() is used, so we do the same is this patch.

It's aligned with the solution used by similar drivers on Linux kernel.
memcopy to ether_addr_copy to eth_hw_addr_set

See for example
torvalds/linux@b57ceb1
torvalds/linux@349f631

Kernels < v5.15 will works in the same way with or without this patch, but maybe solve some issues with newer kernels, where eth_hw_addr_set has been improved.
ping @fariouche to test #1088 @Anoncheg1 for #1075 and @Reflexe to test on ArchLinux #961

Fix #1088

@kimocoder kimocoder merged commit 60222a5 into aircrack-ng:v5.6.4.2 Jul 3, 2023
@CGarces CGarces deleted the fix_1088 branch July 3, 2023 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kernel Oops "Incompatible netdev->dev_addr
2 participants